export default {
  install(Vue) {
    Vue.mixin({
      methods: {
        baiduPageView(path) {
          this.$ba.trackPageview(path)
        },
        baiduPageVisitEvent(pageName) {
          this.$ba.trackEvent('页面访问', '进入', pageName)
        },
        baiduSpecailEvent(text1, text2, text3) {
          window._hmt && window._hmt.push(['_trackEvent', text1, text2, text3])
        }
      }
    })
  }
}
